#Yorkin makefile




ex1 : clock 7segments UART fifo ex1.ld
	mcc ex1.c drivers/clock.o drivers/UART.o drivers/7segments.o lib/fifo.o ex1.ld -o ex1.out 
	@rm ex1.o

UART : drivers/UART.c
	mcc -c drivers/UART.c -o drivers/UART.o 

7segments : drivers/7segments.c
	mcc -c drivers/7segments.c -o drivers/7segments.o 
clock : drivers/clock.c
	mcc -c drivers/clock.c -o drivers/clock.o 
fifo : lib/fifo.c
	mcc -c lib/fifo.c -o lib/fifo.o 
clean :
	@rm -f drivers/*.o
	@rm -f lib/*.o
	@rm -f ex1.out
	@echo Clean Complete.
